﻿using Ninject.Modules;
using Qask.Data.Core;
using Qask.Service.Core;

namespace qask.bindings
{
    public class BaseNinjectBindModule : NinjectModule
    {
        public override void Load()
        {
            BindServices();
            BindRepositories();
        }

        private void BindServices()
        {
            Bind<IAccountService>().To<AccountService>();
            Bind<IPostService>().To<PostService>();
        }

        private void BindRepositories()
        {
            Bind<IAccountRepository>().To<AccountRepository>();
            Bind<IPostRepository>().To<PostRepository>();
        }
    }
}
